m=eval(input())
a,b=1,1
for i in range(3,m+1):
    a,b=b,a+b
print(f'{b} {a/b:.3f}')
